#ifndef LASER_H
#define LASER_H

#include <QtGui>
#include "collisia_control.h"
#include "cash.h"

class LASER : public QGraphicsObject
{

    Q_OBJECT

    QPixmap *im;

    QPainterPath *border;

    int timer_id;

    bool fire_now;

    bool shot_music_run;

    COLLISIA_CONTROL *collisia_control;

    int point;

    SOUND_POWER *shot;

public:

    explicit LASER(SCENE *scene, QTimeLine *global_tl, CASH *cash);
    
    QRectF boundingRect() const;
    QPainterPath shape() const;

    void paint(QPainter *painter, const QStyleOptionGraphicsItem *, QWidget *);

    void timerEvent(QTimerEvent *);

    ~LASER();

    int type() const;

signals:


    
public slots:

    void I_Am_Move(QPoint oba);

};

#endif // LASER_H
